extends "../qiaozhiwushi-1/qiaozhiwushi-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("每击杀一名敌人，积攒一点[魂]，上限20魂，每点魂提升20点炮击及2%射速，魂在回合结束时不会消失", "灵魂收集")
	if team == 2:
		var step = sys.main.getStep()
		soul = min(step*0.2, 20)

func _onKillChara(atkInfo):
	._onKillChara(atkInfo)	
	if not atkInfo.hitCha.isSumm and not upgraded == 1:
		soul += 1
		soul = min(20, soul)

func _onBattleStart():
	._onBattleStart()
	addBuff(b_qiaozhiwushi2.new())

var soul:int = 0
class b_qiaozhiwushi2:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_qiaozhiwushi2"
		dispel = 2
	func _upS():
		att.atk = masCha.soul * 20
		att.spd = masCha.soul * 0.02